Skip to content

Revert "Revert "Fix get_nested_resource_ptr to accept both str and bytes inputs""#1698

Open
rparolin wants to merge 6 commits intomainfrom
revert-1697-revert-1665-rparolin/get_nested_resource_fix
Open

Revert "Revert "Fix get_nested_resource_ptr to accept both str and bytes inputs""#1698
rparolin wants to merge 6 commits intomainfrom
revert-1697-revert-1665-rparolin/get_nested_resource_fix

Conversation

@rparolin
Copy link
Collaborator

Reverts #1697

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Feb 27, 2026

Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@rparolin
Copy link
Collaborator Author

/ok to test

@github-actions
Copy link

@rparolin
Copy link
Collaborator Author

/ok to test

@rparolin
Copy link
Collaborator Author

rparolin commented Mar 3, 2026

/ok to test

@rparolin rparolin enabled auto-merge (squash) March 3, 2026 16:10
@rparolin rparolin requested a review from leofang March 3, 2026 16:11
@cpcloud
Copy link
Contributor

cpcloud commented Mar 3, 2026

@rparolin Looks like there are conflicts.

@cpcloud
Copy link
Contributor

cpcloud commented Mar 4, 2026

Nit (non-blocking): in get_nested_resource_ptr() for the char path, would isinstance(obj_i, (str, bytes)) be preferable to exact type(...) is ... checks? That is a bit more permissive for subclasses while keeping behavior the same for normal inputs.

Copy link
Contributor

@cpcloud cpcloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Left one non-blocking nit in a separate comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants